// src/router.js
import Vue from 'vue';
import VueRouter from 'vue-router';

Vue.use(VueRouter);

const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) {
	return originalPush.call(this, location).catch(err => err)
}

const router = new VueRouter({
	mode: 'history',
	// 路由顺序自定义、index 必须唯一
	routes: [
		{
			path: '/',
			name: 'Combined_TTS',
			meta: {
				title: '首页'
			},
			component: () => import('@/views/Combined_TTS.vue')
		},
	]
})

export default router